package com.ncmmall.application.business.distribution.poster;

import com.quaint.poster.annotation.PosterBackground;
import com.quaint.poster.annotation.PosterFontCss;
import com.quaint.poster.annotation.PosterImageCss;
import com.quaint.poster.core.abst.AbstractDefaultPoster;
import lombok.Getter;
import lombok.Setter;

import java.awt.image.BufferedImage;

/**
 * 商品海报类型1
 */
@Getter
@Setter
public class Poster4 extends AbstractDefaultPoster {

    /**
     * 背景图
     */
    @PosterBackground(width = 750, height = 982)
    private BufferedImage backgroundImage;

    /**
     * 头像
     */
    @PosterImageCss(position = {636, 30}, width = 84, height = 84, circle = true)
    private BufferedImage avatar;

    /**
     * 昵称
     */
    @PosterFontCss(position = {30, 30}, color = {255, 255, 255}, size = 32)
    private String nickName;

    /**
     * 描述文字
     */
    @PosterFontCss(position = {30, 91}, color = {255, 255, 255}, size = 26, canNewLine = {1, 570, 3})
    private String text;

    /**
     * 商品文字
     */
    @PosterFontCss(position = {30, 816}, color = {255, 255, 255}, size = 30, canNewLine = {1, 327, 3})
    private String goodsName;

    /**
     * 二维码
     */
    @PosterImageCss(position = {570, 796}, width = 150, height = 150)
    private BufferedImage qrCode;

    /**
     * 商品图片
     */
    @PosterImageCss(position = {400, 796}, width = 150, height = 150)
    private BufferedImage goodsImage;

}
